package com.intre.open.gwtjpa.data.second.server.service;

import java.util.List;

import net.sf.gilead.gwt.PersistentRemoteService;

import com.intre.open.gwtjpa.data.second.client.service.DataSecondService;
import com.intre.open.gwtjpa.data.second.domain.City;
import com.intre.open.gwtjpa.data.second.server.spring.DataSecondServiceSpring;
import com.intre.open.gwtjpa.data.second.server.spring.SpringUtils;

public class DataSecondServiceImpl extends PersistentRemoteService implements DataSecondService {

	private static final long serialVersionUID = 9066248940129914324L;

	public DataSecondServiceSpring getService() {
		return (DataSecondServiceSpring) SpringUtils.getBean(this.getThreadLocalRequest(), DataSecondServiceSpring.SECOND_SERVICE_NAME);
	}

	@Override
	public List<City> getAll() {
		return (List<City>) getService().loadAll();
	}

}

